* {
  margin: 0;
  padding: 0;
}

/* #region 搜索框 */
.father_Bar {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  /* background-color: dodgerblue; */
  height: 100px;
}
.father_Bar .searchBar {
  width: 60px;
  height: 60px;
  background-color: rgb(255, 255, 255);
  box-shadow: 0 0 10px rgb(0 0 0 0.4);
  border-radius: 60px;
  /* 添加一个相对定位, 使其子元素可以根据他来定位 */
  position: relative;
  overflow: hidden;
  transition: 0.5s;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
}
.bar_width {
  width: 400px !important;
}
.father_Bar .searchBar:hover {
  border: solid dodgerblue;
  -webkit-box-shadow: dodgerblue 0px 3px 2px, #000 0px 3px 5px,
    0 0 50px dodgerblue;
  box-shadow: dodgerblue 0px 3px 2px, #000 0px 3px 5px, 0 0 50px dodgerblue;
}

/* 图标 */
.father_Bar .searchBar .icon {
  width: 60px;
  height: 60px;
  background-color: inherit;
  border-radius: inherit;
  display: flex;
  justify-content: center;
  align-items: center;
  /* 鼠标小手 */
  cursor: pointer;
}
/* 伪元素,生成搜索图标头部 */
.father_Bar .searchBar .icon::before {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 3px solid #008c8c;
  /* 添加绝对定位, 两个伪元素可以重叠在一起 */
  position: absolute;
  /* 使搜索图标圆圈偏移到左上角4px */
  transform: translate(-4px, -4px);
}
/* 伪元素,生成搜索图标尾巴 */
.father_Bar .searchBar .icon::after {
  content: "";
  width: 3px;
  height: 12px;
  /* 没有边框 */
  background-color: #008c8c;
  /* 使图标的尾巴 translate偏移到右下角, rotate旋转315度 */
  transform: translate(6px, 6px) rotate(315deg);
}
.father_Bar .searchBar .textinput {
  width: 320px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: aqua;
  /* 绝对定位, 根据父元素的位置来定位 */
  position: absolute;
  top: 0;
  left: 60px;
}
.father_Bar .searchBar .textinput input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  font-size: 18px /* 18px -> 2.4vw */;
}

/* 清除按钮 */
.father_Bar .searchBar .textinput .clear {
  width: 15px;
  height: 15px;
  /* 控制位置 */
  position: absolute;
  right: 22%;
  top: 50%;
  /* 往上面在走自身高度的一半 */
  transform: translateY(-50%);
  cursor: pointer;
  /* 居中 */
  display: flex;
  justify-content: center;
  align-items: center;
}
.father_Bar .searchBar .textinput .clear::before {
  content: "";
  width: 1px;
  height: 15px;
  background-color: #999;
  transform: rotate(45deg);
  /* 添加绝对定位使其重合 */
  position: absolute;
}
.father_Bar .searchBar .textinput .clear::after {
  content: "";
  width: 1px;
  height: 15px;
  background-color: #999;
  transform: rotate(315deg);
}

/* 提交按钮 */
.father_Bar .searchBar .textinput #go {
  width: 12%;
  height: 60%;
  position: absolute;
  top: 20%;
  right: 0;
  border-radius: 50%;
}
.father_Bar .searchBar .textinput #go:hover {
  opacity: 1;
  cursor: pointer;

  --bg: #e74c3c;
  --text-color: #fff;
  border-radius: 50%;
  /* position: relative; */
  /* width: 150px; */
  border: none;
  background: var(--bg);
  color: var(--text-color);
  /* padding: 1em; */
  font-weight: bold;
  text-transform: uppercase;
  transition: 0.2s;
  opacity: 0.8;
  letter-spacing: 1px;
  box-shadow: #c0392b 0px 7px 2px, #000 0px 8px 5px, 0 0 50px #c0392b;
}
.father_Bar .searchBar .textinput #go:active {
  top: 4px;
  -webkit-box-shadow: #c0392b 0px 3px 2px, #000 0px 3px 5px, 0 0 50px #c0392b;
  box-shadow: #c0392b 0px 3px 2px, #000 0px 3px 5px, 0 0 50px #c0392b;
}
/* #endregion */
